--TEST--
Check for jsonschema  number validate
--SKIPIF--

<?php if (!extension_loaded("jsonschema"))
    print "skip"; ?>
--FILE--
<?php
echo 'object', PHP_EOL;
$value = new stdClass();
$value->name = 'a name';
$value->age = 30;
$value->height = "183";
$jsonSchema = new JsonSchema(json_encode($value));

echo assert(!$jsonSchema->validate('{"type":"object","properties":{"name":{"type":"boolean"},"age":{"type":"integer","default":0,"minimum":20,"maximum":25,"exclusiveMinimum":20,"exclusiveMaximum":25},"height":{"type":"number","default":0,"minimum":0,"maximum":2147483647,"exclusiveMinimum":0,"exclusiveMaximum":2147483647}}}')), PHP_EOL;
echo count($jsonSchema->getErrors()), PHP_EOL;
?>
--EXPECT--
1
1
